package com.xcity.game.buff.effect;

import com.xcity.db.entity.Player;
import com.xcity.game.buff.Buff;
import com.xcity.game.buff.BuffEffector;
import com.xcity.game.common.PlayerPool;

/**
 * 资产保护
 * @author yang.li
 *
 */
public class ProtectAssetsEffect implements BuffEffector {

	@Override
	public boolean effect(Buff buff, Player player) {
		player.poolSet(PlayerPool.PROPERTY_ASSETS_BE_PROTECTED, true);
		return true;
	}

	@Override
	public boolean uneffect(Buff buff, Player player) {
		player.poolRemove(PlayerPool.PROPERTY_ASSETS_BE_PROTECTED);
		return true;
	}

}
